<?php
$action=$argv[1];
if($action=='start'){
    exec("sh /opt/huisheng/wwwroot/api.raisound.com/html/capability_platform/start_websocket.sh start");
    echo "start \n ";
}else{
    exec("sh /opt/huisheng/wwwroot/api.raisound.com/html/capability_platform/start_websocket.sh stop");
    echo "stop\n";
}

while(true){
    sleep(1);
    echo "running\r\n";
}
